]>
Commit | Line | Data |
---|---|---|
1a9246c6 JB |
1 | Summary: The Typesafe Signal Framework for C++ - MinGW32 cross version |
2 | Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++ - wersja skrośna dla MinGW32 | |
67b44d4b JB |
3 | %define realname libsigc++ |
4 | Name: crossmingw32-%{realname} | |
e27607ce | 5 | Version: 2.2.11 |
7e12b981 | 6 | Release: 3 |
67b44d4b | 7 | License: LGPL v2.1+ |
066b4b18 | 8 | Group: Development/Libraries |
951a73e1 | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/%{realname}-%{version}.tar.xz |
e27607ce | 10 | # Source0-md5: 815d0c6d61601f51bbcaeef6826606b0 |
dec16728 | 11 | URL: http://libsigc.sourceforge.net/ |
12 | BuildRequires: autoconf >= 2.59 | |
951a73e1 | 13 | BuildRequires: automake >= 1:1.9 |
066b4b18 | 14 | BuildRequires: crossmingw32-gcc-c++ |
e27607ce | 15 | BuildRequires: libtool >= 2:2.0 |
dec16728 | 16 | BuildRequires: m4 |
1a9246c6 | 17 | BuildRequires: mm-common >= 0.7.2 |
dec16728 | 18 | BuildRequires: perl-base |
1a9246c6 | 19 | BuildRequires: pkgconfig |
951a73e1 JB |
20 | BuildRequires: tar >= 1:1.22 |
21 | BuildRequires: xz | |
066b4b18 | 22 | Requires: crossmingw32-runtime |
dec16728 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %define no_install_post_strip 1 | |
26 | ||
27 | %define target i386-mingw32 | |
28 | %define target_platform i386-pc-mingw32 | |
dec16728 | 29 | |
30 | %define _sysprefix /usr | |
31 | %define _prefix %{_sysprefix}/%{target} | |
6986ab9d JB |
32 | %define _libdir %{_prefix}/lib |
33 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
066b4b18 | 34 | %define _dlldir /usr/share/wine/windows/system |
dec16728 | 35 | %define __cc %{target}-gcc |
36 | %define __cxx %{target}-g++ | |
7e12b981 | 37 | %define __pkgconfig_provides %{nil} |
dec16728 | 38 | |
96d9454a JB |
39 | %ifnarch %{ix86} |
40 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
41 | %define optflags -O2 | |
42 | %endif | |
e27607ce | 43 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
96d9454a | 44 | %define filterout_ld -Wl,-z,.* |
79081b3a | 45 | %define filterout_c -f[-a-z0-9=]* |
e27607ce | 46 | %define filterout_cxx -f[-a-z0-9=]* |
96d9454a | 47 | |
dec16728 | 48 | %description |
49 | This library implements a full callback system for use in widget | |
50 | libraries, abstract interfaces, and general programming. Originally | |
51 | part of the Gtk-- widget set, libsigc++ is now a seperate library to | |
52 | provide for more general use. It is the most complete library of its | |
53 | kind with the ablity to connect an abstract callback to a class | |
54 | method, function, or function object. It contains adaptor classes for | |
55 | connection of dissimilar callbacks and has an ease of use unmatched by | |
56 | other C++ callback libraries. | |
57 | ||
1a9246c6 | 58 | This package contains cross MinGW32 version. |
708b30c2 | 59 | |
a0719c45 JR |
60 | %description -l pl.UTF-8 |
61 | Ta biblioteka jest implementacją pełnego systemu callbacków do | |
62 | używania w bibliotekach widgetów, interfejsach abstrakcyjnych i | |
63 | ogólnym programowaniu. Oryginalnie była to część zestawu widgetów | |
64 | Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego | |
65 | przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością | |
66 | łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub | |
67 | obiektami funkcji. Zawiera klasy adapterów do łączenia różnych | |
68 | callbacków. | |
dec16728 | 69 | |
1a9246c6 | 70 | Ten pakiet zawiera wersję skrośną MinGW32. |
708b30c2 | 71 | |
066b4b18 | 72 | %package static |
1a9246c6 JB |
73 | Summary: Static libsigc++ library (cross MinGW32 version) |
74 | Summary(pl.UTF-8): Statyczna biblioteka libsigc++ (wersja skrośna MinGW32) | |
066b4b18 JB |
75 | Group: Development/Libraries |
76 | Requires: %{name} = %{version}-%{release} | |
77 | ||
78 | %description static | |
1a9246c6 | 79 | Static libsigc++ library (cross MinGW32 version). |
066b4b18 JB |
80 | |
81 | %description static -l pl.UTF-8 | |
1a9246c6 | 82 | Statyczna biblioteka libsigc++ (wersja skrośna MinGW32). |
066b4b18 JB |
83 | |
84 | %package dll | |
85 | Summary: DLL libsigc++ library for Windows | |
86 | Summary(pl.UTF-8): Biblioteka DLL libsigc++ dla Windows | |
87 | Group: Applications/Emulators | |
88 | Requires: wine | |
89 | ||
90 | %description dll | |
91 | DLL libsigc++ library for Windows. | |
92 | ||
93 | %description dll -l pl.UTF-8 | |
94 | Biblioteka DLL libsigc++ dla Windows. | |
95 | ||
dec16728 | 96 | %prep |
67b44d4b | 97 | %setup -q -n %{realname}-%{version} |
dec16728 | 98 | |
99 | %build | |
100 | %{__libtoolize} | |
1a9246c6 | 101 | %{__aclocal} -I build |
dec16728 | 102 | %{__autoconf} |
103 | %{__automake} | |
104 | %configure \ | |
178e282c | 105 | --target=%{target} \ |
106 | --host=%{target} \ | |
178e282c | 107 | --enable-static |
108 | ||
dec16728 | 109 | %{__make} all |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %{__make} install \ | |
115 | DESTDIR=$RPM_BUILD_ROOT | |
116 | ||
066b4b18 JB |
117 | install -d $RPM_BUILD_ROOT%{_dlldir} |
118 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
119 | ||
120 | %if 0%{!?debug:1} | |
121 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
122 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
123 | %endif | |
124 | ||
1a9246c6 | 125 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{devhelp,doc} |
066b4b18 | 126 | |
dec16728 | 127 | %clean |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
132 | %doc AUTHORS ChangeLog NEWS README TODO | |
066b4b18 JB |
133 | %{_libdir}/libsigc-2.0.dll.a |
134 | %{_libdir}/libsigc-2.0.la | |
135 | %{_libdir}/sigc++-2.0 | |
723599ec | 136 | %{_includedir}/sigc++-2.0 |
67b44d4b | 137 | %{_pkgconfigdir}/sigc++-2.0.pc |
066b4b18 JB |
138 | |
139 | %files static | |
140 | %defattr(644,root,root,755) | |
141 | %{_libdir}/libsigc-2.0.a | |
142 | ||
143 | %files dll | |
144 | %defattr(644,root,root,755) | |
145 | %{_dlldir}/libsigc-2.0-*.dll |